package com.yangjunli.bishe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yangjunli.bishe.entity.BbsArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-04-05
 */
@Mapper
public interface BbsArticleMapper extends BaseMapper<BbsArticle> {

    void updateLikeBbs(Integer id);

    List<BbsArticle> selectAllBbs();

    void updateCommentNum(Integer id);

    List<BbsArticle> selectAllBbsArtUserId(@Param("id") Integer id,@Param("pageSize") Integer pageSize, @Param("pageNum") Integer pageNum);

    Long selectAllBbsArtUserIdCount(Integer id);
}
